Optimal. Leaf size=37 \[ \frac{\tan ^7(x)}{7 a^4}+\frac{3 \tan ^5(x)}{5 a^4}+\frac{\tan ^3(x)}{a^4}+\frac{\tan (x)}{a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02165, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {3175, 3767} \[ \frac{\tan ^7(x)}{7 a^4}+\frac{3 \tan ^5(x)}{5 a^4}+\frac{\tan ^3(x)}{a^4}+\frac{\tan (x)}{a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3767
Rubi steps
\begin{align*} \int \frac{1}{\left (a-a \sin ^2(x)\right )^4} \, dx &=\frac{\int \sec ^8(x) \, dx}{a^4}\\ &=-\frac{\operatorname{Subst}\left (\int \left (1+3 x^2+3 x^4+x^6\right ) \, dx,x,-\tan (x)\right )}{a^4}\\ &=\frac{\tan (x)}{a^4}+\frac{\tan ^3(x)}{a^4}+\frac{3 \tan ^5(x)}{5 a^4}+\frac{\tan ^7(x)}{7 a^4}\\ \end{align*}
Mathematica [A] time = 0.0051274, size = 41, normalized size = 1.11 \[ \frac{\frac{16 \tan (x)}{35}+\frac{1}{7} \tan (x) \sec ^6(x)+\frac{6}{35} \tan (x) \sec ^4(x)+\frac{8}{35} \tan (x) \sec ^2(x)}{a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 24, normalized size = 0.7 \begin{align*}{\frac{1}{{a}^{4}} \left ({\frac{ \left ( \tan \left ( x \right ) \right ) ^{7}}{7}}+{\frac{3\, \left ( \tan \left ( x \right ) \right ) ^{5}}{5}}+ \left ( \tan \left ( x \right ) \right ) ^{3}+\tan \left ( x \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.941432, size = 38, normalized size = 1.03 \begin{align*} \frac{5 \, \tan \left (x\right )^{7} + 21 \, \tan \left (x\right )^{5} + 35 \, \tan \left (x\right )^{3} + 35 \, \tan \left (x\right )}{35 \, a^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.89384, size = 97, normalized size = 2.62 \begin{align*} \frac{{\left (16 \, \cos \left (x\right )^{6} + 8 \, \cos \left (x\right )^{4} + 6 \, \cos \left (x\right )^{2} + 5\right )} \sin \left (x\right )}{35 \, a^{4} \cos \left (x\right )^{7}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 108.262, size = 675, normalized size = 18.24 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11095, size = 38, normalized size = 1.03 \begin{align*} \frac{5 \, \tan \left (x\right )^{7} + 21 \, \tan \left (x\right )^{5} + 35 \, \tan \left (x\right )^{3} + 35 \, \tan \left (x\right )}{35 \, a^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]